import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Doctor } from './entities/doctor.entity';
import { DoctorService } from './doctor.service';
import { DoctorController } from './doctor.controller';
import { WxUserService } from '../wxuser/wxuser.service'; // 导入 WxUserModule
import { WxUser } from '../wxuser/entities/wxuser.entity';

@Module({
  imports: [TypeOrmModule.forFeature([Doctor, WxUser])],
  providers: [DoctorService, WxUserService],
  controllers: [DoctorController],
  exports: [TypeOrmModule.forFeature([Doctor])], // 导出 DoctorRepository
})
export class DoctorModule {}
